package com.simulation.web.utils;

/**
 * @Author 唐雄杰
 * @Date 2024-09-05 16:01
 **/
public enum RelatedTypeEnum {
    COLLECTION,
    POST;

    public static RelatedTypeEnum getByName(String name) {
        for (RelatedTypeEnum relatedTypeEnum : RelatedTypeEnum.values()) {
            if (relatedTypeEnum.name().toLowerCase().equals(name.toLowerCase())) {
                return relatedTypeEnum;
            }
        }
        return null;
    }
}
